<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>demo05</title>
  <script src="../lib/react.js"></script>
  <script src="../lib/react-dom.js"></script>
  <script src="../lib/browser.js"></script>
</head>
<body>
<div id="root"></div> 
<!-- 
React component 可以是一个函数，返回一个 React element

* 传递参数
 -->
<script type="text/babel">

function Welcome(props){
  return <h1> Welcome, {props.name} </h1>;
}

ReactDOM.render(
  <Welcome name='John' />,
  document.getElementById('root')
);
</script>
</body>
</html>